/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test.pattern;

/**
 *
 * @author Administrator
 */
public class Client {

    public static void main(String[] args) {
        MobileFactory mbf = new NokiaFactory();
        Mobile mb = mbf.produceMobile();
        mb.call();
        
        mbf = new MotorolaFactory();
        mb = mbf.produceMobile();
        mb.call();
    }
}
